<?php
namespace App\Module\Admin\Controller;

use App\Common\Controller\AbstractController;
use App\Module\Admin\Service\UserService;
use Hyperf\Di\Annotation\Inject;

class UserController extends AbstractController{

    /**
     * @Inject()
     * @var UserService $userService
     */
    private $userService;

    public function search(){
        $username = $this->request->input("username");
        $pagesize = $this->request->input("pagesize");

        return $this->response->json($this->userService->search($username,$pagesize));
    }
}